<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>管理平台</title>
	<%- include ../common/js.ejs %> 
	<%- include ../common/css.ejs %>
	<script src="<%=server.js%>myjs/tariff.js?v=<%=server.version%>"></script>
	<style type="text/css">
	  body {
		padding-bottom: 40px;
	  }
	  .sidebar-nav {
		padding: 9px 0;
	  }
	</style>		
</head>
<body>
	<div class="navbar">
		<%- include common/top.ejs %>
	</div>
	<!-- topbar ends -->
		<div class="container-fluid">
		<div class="row-fluid">
			<!-- left menu starts -->
			<div class="span2 main-menu-span">
				<div class="well nav-collapse sidebar-nav">
					<ul class="nav nav-tabs nav-stacked main-menu">
						<%- include common/menu.ejs %>
					</ul>
				</div><!--/.well -->
			</div><!--/span-->
			<!-- left menu ends -->
			
			<div id="content" class="span10">
			<!-- content starts -->

			<div>
				<ul class="breadcrumb">
					<li>
						<a href="#">主页</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">设置</a>
					</li>
				</ul>
			</div>
			<div class="box-content">
				<div class="alert1 alert1-success" <% if(msg=="") { %> style="display:none" <% } %> > 
				    <a class="close1" onclick="$('.alert1').hide(500)">&times;</a>  
				    <span id="errormsg"><%=msg %></span>  
				</div>
				<form class="form-horizontal" enctype="multipart/form-data"  method="post" action="<%=server.site%>admin/setting/save">
				  <fieldset>
					<div class="control-group">
							<label class="control-label" for="focusedInput">客服电话</label>
						<div class="controls">
							<input id="focusedInput" class="input-xlarge focused" type="text" value="<%=setting.phone %>" name="phone"/>
						</div>
					</div>   
					<div class="control-group">
							<label class="control-label" for="focusedInput">公告</label>
						<div class="controls">
							<input id="focusedInput" class="input-xlarge focused" type="text"  value="<%=setting.gg %>" name="gg"/>
						</div>
					</div>   
					<div class="control-group">
							<label class="control-label" for="focusedInput">司机APP版本号</label>
						<div class="controls">
							<div class="fileupload fileupload-new" data-provides="fileupload"><input id="focusedInput" class="input-xlarge focused" type="text" style="width:100px"  value="<%=setting.t_app_v %>" name="tappv"/>
							  <span class="btn btn-file"><span class="fileupload-new">上传</span><span class="fileupload-exists">修改</span><input type="file" value="<%=setting.t_app_v %>" name="tapp"/></span>
							  <span class="fileupload-preview"></span>
							  <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
								<% if (setting.t_app_u) { %> 
									<a class="btn btn-small" href="<%=server.app%><%=setting.t_app_u%>" title="下载"><i class="iconic-download"></i>下载</a>
								<% } %>
							</div>
							
						</div>
					</div>   
					<div class="control-group">
							<label class="control-label" for="focusedInput">乘客APP版本号</label>
						<div class="controls">
							<div class="fileupload fileupload-new" data-provides="fileupload"><input id="focusedInput" class="input-xlarge focused" type="text" style="width:100px" value="<%=setting.c_app_v %>" name="cappv"/>
							  <span class="btn btn-file"><span class="fileupload-new">上传</span><span class="fileupload-exists">修改</span><input type="file" value="<%=setting.c_app_v %>" name="capp" /></span>
							  <span class="fileupload-preview"></span>
							  <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
								<% if (setting.c_app_u) { %> 
									<a class="btn btn-small" href="<%=server.app%><%=setting.c_app_u%>" title="下载"><i class="iconic-download"></i>下载</a>
								<% } %>
							</div>
						</div>
					</div>  
					<div class="form-actions">
					  <button type="submit" class="btn btn-primary">保存</button>
					</div>
				  </fieldset>
				</form>
			 </div>   
		   </div><!--/#content.span10-->
		</div><!--/fluid-row-->
		<hr>
		<%- include common/change_pwd.ejs %>
		<%- include common/footer.ejs %>
	</div>
</body>
</html>
